/**
 * 
 */
package com.wkr.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wkr.bean.EmpBean;
import com.wkr.dao.IEmpInfoDao;
import com.wkr.service.ILoginService;

/**
 * @author 天下有雪
 */
@Service("loginS")
public class LoginSeviceImpl implements ILoginService {

	@Resource
	private IEmpInfoDao ied; // 按类型匹配进行注入
	
	public List<EmpBean> LoginInfo(EmpBean eb) {
		List<EmpBean> list = ied.selectLoginInfo(eb);
		return list;
	}
	
	public List<EmpBean> queryInfo(EmpBean eb) {
		List<EmpBean> list = ied.selectByOne(eb);
		return list;
	}

	
	@Override
	public int DeleteByID(Long id) {
		int i = ied.deleteByPrimaryKey(id);
		return i;
	}

	@Override
	public int UpdateById(EmpBean eb) {
		int i = ied.updateByPrimaryKeySelective(eb);
		return i;
	}

	
}
